<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="${CONTEXT}/view/css/import.css"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
<title>バッチ状況明細照会</title>
</head>

<body id="layres">
<div class="layreshdr">
	<div>
	<ul>
		<li><a href="menu.do">メニュー</a></li>
		<li><a href="logoff.do">ログオフ</a></li>
	</ul>
	</div>
	<div>
		<utl:param var="prm" name="JobSeq" value="" />
		<a href="${STATUS_PATH}?${prm}">状況照会</a>&nbsp;&gt;
		バッチ詳細状況
	</div>

	<div id="topMessage">${MESSAGE}</div>
</div>
<div class="layresmaj">
	<div class="layrespri">
		<div>
			<a href="${ACTION_PATH}?${REQUEST_QUERY}">再表示</a>
		</div>
		<div>
			${empty Cnt ? '0' : Cnt}&nbsp;件
		</div>
		<div>
			<table width="100%" class="fixborder" >
				<tr>
					<th rowspan="2">No</th>
					<th>バッチ名</th>
					<th>開始日時</th>
					<th>終了日時</th>
					<th rowspan="2" align="center">処理状況</th>
				</tr>
				<tr>
					<th colspan="3" align="center">ファイル(サイズ)</th>
				</tr>

				<c:forEach begin="0" items="${band.BatName}" var="bat" varStatus="i">
				<c:set var="bg" value="${(i.count mod 2) eq 0 ? 'even' : 'odd'}"/>
				<tr class="${bg}">
					<td rowspan="2" align="center">
						${i.count}
					</td>
					<td align="center">
						<c:set var="val" value="${empty bat.BatName ? '-' : bat.BatName}" />
						${val}
					</td>
					<td align="center">
						${view:datefmt(bat.StartDateTime, "yyyy/MM/dd hh:mm")}
					</td>
					<td align="center">
						${view:datefmt(bat.StopDateTime, "yyyy/MM/dd hh:mm")}
					</td>
					<td rowspan="2" align="left">
						<tags:state var="val" value="${bat.Status}"/>
						${val}
					</td>
				</tr>
				<tr class="${bg}">
					<td colspan="3" align="center">
					<c:set var="files" value="-"/>
					<c:if test="${fn:startsWith(bat.Status, '4')}">
					<c:forEach begin="1" end="5" varStatus="j">
						<utl:set var="fseq" name="array.FileSeq${j.index}"/>
						<c:if test="${not empty fseq[i.index]}">
							<c:set var="files" value=""/>

							<utl:set var="fmei" name="array.FileName${j.index}"/>
							<utl:encode var="fenc" value="${fmei[i.index]}" encoding="UTF-8" />

							<a href="DOWNLOAD/JobSeq/${JobSeq}/FileSeq/${fseq[i.index]}/${fenc}">
							<utl:set var="fsize" name="array.FileSize${j.index}"/>
							${fmei[i.index]}&nbsp;(${view:numfmt((fsize[i.index] gt 1000) ? (fsize[i.index] div 1000) : 1, '0')}KB)
							</a>
							&nbsp;
						</c:if>
					</c:forEach>
					</c:if>
					<c:out value="${files}"/>
					</td>
				</tr>
				</c:forEach>
			</table>
		</div>
	</div>
	<div class="layressec">
	</div>
	<div class="layrester">
	</div>
</div>
<div class="layresftr">
	<div class="layresftr1">
	</div>
	<div class="layresftr2">
	</div>
</div>

</body>
</html>
